package cn.hill4j.tool.spring.ext.feign;

import lombok.Data;

import java.util.List;
/**
  * ClassName: FeignUrlResetProperties
  * Description: feign url重置配置类
  * @author hillchen
  * Date: 2023/8/11
  * @version: 1.0
  */
@Data
public class FeignUrlResetProperties {
    /**
     * 配置前缀
     */
    public static String FEIGN_URL_RESET_PREFIX="hill4j.feign.reset";
    /**
     * 具体配置参数列表
     */
    private List<FeignUrlResetConfig> configs;
    /**
      * ClassName: FeignUrlResetProperties
      * Description: url重置类型
      * @author hillchen
      * Date: 2023/8/11
      * @version: 1.0
      */
    public enum ResetType{
        NAME("name","feign接口应用名称"),
        CONTEXT_ID("contextId","feign接口contextId"),
        PACKAGE("package","feign接口所在包名");
        /**
         * 类型名称
         */
        public final String type;
        /**
         * 类型说明
         */
        public final String desc;

        ResetType(String type, String desc) {
            this.type = type;
            this.desc = desc;
        }
    }
}
